const REMOTE_API_SERVER = 'http://localhost:9080';

// 跨域设置
const proxy = {
  '/api/*': {
    changeOrigin: true,
    target: REMOTE_API_SERVER,
    pathRewrite: {
      '^/api': '${REMOTE_API_SERVER}/api',
    },
  },
  '/openapi/v1/*': {
    changeOrigin: true,
    target: REMOTE_API_SERVER,
    pathRewrite: {
      '^/openapi/v1': '${REMOTE_API_SERVER}/openapi/v1',
    },
  },
  '/openapi/v2/*': {
    changeOrigin: true,
    target: REMOTE_API_SERVER,
    pathRewrite: {
      '^/openapi/v2': '${REMOTE_API_SERVER}/openapi/v2',
    },
  },
};
